package com.woniu.common.entity;

import java.io.Serializable;

/**
 * tb_jp_bed_dr
 * @author 
 */
public class TbJpBedDr implements Serializable {
    private Integer id;

    private String bedcode;

    private String mac;

    private Integer farmat;

    private Integer cp;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBedcode() {
        return bedcode;
    }

    public void setBedcode(String bedcode) {
        this.bedcode = bedcode;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public Integer getFarmat() {
        return farmat;
    }

    public void setFarmat(Integer farmat) {
        this.farmat = farmat;
    }

    public Integer getCp() {
        return cp;
    }

    public void setCp(Integer cp) {
        this.cp = cp;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbJpBedDr other = (TbJpBedDr) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBedcode() == null ? other.getBedcode() == null : this.getBedcode().equals(other.getBedcode()))
            && (this.getMac() == null ? other.getMac() == null : this.getMac().equals(other.getMac()))
            && (this.getFarmat() == null ? other.getFarmat() == null : this.getFarmat().equals(other.getFarmat()))
            && (this.getCp() == null ? other.getCp() == null : this.getCp().equals(other.getCp()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBedcode() == null) ? 0 : getBedcode().hashCode());
        result = prime * result + ((getMac() == null) ? 0 : getMac().hashCode());
        result = prime * result + ((getFarmat() == null) ? 0 : getFarmat().hashCode());
        result = prime * result + ((getCp() == null) ? 0 : getCp().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", bedcode=").append(bedcode);
        sb.append(", mac=").append(mac);
        sb.append(", farmat=").append(farmat);
        sb.append(", cp=").append(cp);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}